/// 用户实例
class UserModel {
  final String? nickname;
  final String? avator;
  final String? cover;
  final String? uid;

  UserModel({this.uid, this.nickname, this.avator, this.cover});

  factory UserModel.fromJson(Map<String, dynamic> json) => UserModel(
      uid: json['uid'] as String?,
      nickname: json['nickname'] as String?,
      avator: json['avator'] as String?,
      cover: json['cover'] as String?);

  Map<String, dynamic> toJson() => {
        "uid": uid,
        "nickname": nickname,
        "avator": avator,
        "cover": cover,
      };
}
